package org.bao.response;


/**
 * FileName: ResponseEnum
 * Author: mohe
 * Date: 2021/8/2 23:53
 * Description: 1.0
 * History:
 * <author>  <time>  <version>  <desc>
 */
public enum ResponseEnum {

    SUCCESS(200,"请求成功"),
    ERROR(31000,"请求失败"),
    SYSTEM_ERROR(30000, "系统异常"),
    BUSSINESS_ERROR(30001, "业务逻辑错误"),
    PARAM_ERROR(30003, "业务参数错误");

    private Integer code;
    private String msg;

    ResponseEnum(Integer code, String msg) {
            this.code=code;
            this.msg=msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code){
        this.code=code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsg(){
        return msg;
    }
}
